package com.example.pages;

import java.util.List;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class HomePage extends InternalPage {

	@FindBy(xpath = "//a[3]/div/div/div")
	public WebElement movie16Link;

	@FindBy(xpath = "html/body/div[1]/div/div/section")
	public WebElement listOfFilms;

	@FindBy(xpath = "html/body/div[1]/div/div/section/nav/ul/li[1]/div/div/a")
	public WebElement addNewMovieButton;

	@FindBy(xpath = "html/body/div[1]/div/div/section/div[3]")
	public WebElement movieInfo;

	@FindBy(xpath = "html/body/div/div/div/section/div[3]/a")
	public static List<WebElement> linksToFilms;

	public boolean isHomePageOpened() {
		return listOfFilms.isDisplayed();

	}

	public boolean listFilms(String filmName) {
		return listOfFilms.isDisplayed();
	}

}
